package com.ruoyi.web.controller.system;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.system.domain.SysField;
import com.ruoyi.system.mapper.TestUserMapper;
import com.ruoyi.system.service.ISysFieldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 字段Controller
 * 
 * @author ruoyi
 * @date 2023-03-13
 */
@RestController
@RequestMapping("/system/test/user")
public class SysTestUserController extends BaseController
{
    @Autowired
    private TestUserMapper userMapper;

    /**
     * 查询字段列表
     */
    @GetMapping("/list")
    public AjaxResult list()
    {
        return success(userMapper.selectUser());
    }


}
